package com.binance.notification.api.push.notification;

import com.binance.master.validator.constraints.CustomCheck;
import com.binance.notification.api.push.INotification;
import com.binance.notification.verifier.PusMessageVerifier;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@ApiModel(value = "Web通知", description = "发送到Web端的通知")
@CustomCheck(verifier = PusMessageVerifier.class)
@Getter
@Setter
public class WebPayload extends AbstractNotification implements INotification {

    private static final long serialVersionUID = 8016365890013322923L;
    @ApiModelProperty(value = "web端收到后的动作，0：展示通知；1：打开网页页面", allowableValues = "range[0, 1]")
    private int action;
    @ApiModelProperty(value = "打开的Wap地址，前缀可能是http://、https://、inside: 三者之一。")
    private String wap;
    @ApiModelProperty(value = "打开的Web地址，前缀可能是http://、https://、inside: 三者之一。")
    private String web;
    @ApiModelProperty(value = "引导按钮名称")
    private String btn;

}
